package com.gyh.thymeleaf.service;

import com.gyh.thymeleaf.entity.Building;

import java.util.List;

/**
 * @author gyhstart
 * @create 2020/6/26 - 18:44
 **/
public interface BuildingService {
    /**
     * 添加数据
     */
    int save(Building building);

    /**
     * 查询数据
     */
    List<Building> query();

    /**
     * 查询数据id
     */
    Building queryById(int id);

    /**
     * 修改数据id
     * @param building
     * @return
     */
    int modify(int id ,Building building);

    /**
     * 删除数据id
     * @param id
     * @return
     */
    int removeById(int id);

    /**
     * 条件查询
     * @param name
     * @return
     */
    List<Building> conditionBuilding(String name);
}
